﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeFile="NewsPopup.aspx.cs" Inherits="NewsPopup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="toPrint">
        <center>
            <div style="padding: 4px 10px">
                <!-- AddThis Button BEGIN -->
                <asp:PlaceHolder runat="server" ID="AajKaAkhbarSharingLinksPlaceHolder">
                    <div class="addthis_toolbox addthis_default_style" style="display: inline-block;
                        min-width: 300px;">
                        <a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2">
                        </a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4">
                        </a><a class="addthis_button_preferred_5"></a><a class="addthis_button_preferred_6">
                        </a><a class="addthis_button_preferred_7"></a><a class="addthis_button_preferred_8">
                        </a><a class="addthis_button_preferred_9"></a><a class="addthis_button_preferred_10">
                        </a>
                        <asp:Literal ID="addthis2_literal" runat="server" Text="<a class='addthis_button_compact' addthis:ui_delay='500'></a>"></asp:Literal>
                        <a class="addthis_counter addthis_bubble_style"></a>
                    </div>

                    <img id="print" alt="Print" title="Print" style="cursor:pointer" src="/images/print.gif" />
                    &nbsp;&nbsp;
                
                    <img id="EmailtoFriend" data-controls-modal="email-to-friend-modal" data-backdrop="static" src="/images/email.gif" alt="Email to Friend" title="Email to Friend" style="cursor:pointer" />

                    <a href="#" data-controls-modal="comment-modal" data-backdrop="static" ><img src="/images/apni-raye-dijiye.jpg" alt="add domments" /></a>

                </asp:PlaceHolder>
                <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f0b492002b7c843"></script>
                <!-- AddThis Button END -->
            </div>
                   <br style="clear: both;" />
            <div class="popup-page">
                <asp:Image runat="server" ID="NewsImage" Width="733" /></div>
                <br style="clear: both;" />
        </center>


    <div id="email-to-friend-modal" class="modal hide fade" style="display: none;">
        <div class="modal-header">
            <a href="#" class="close">×</a>
            <h3>
                Email to Friend</h3>
        </div>
        <div class="modal-body">
            <iframe id="modalIFrame" width="530px" height="420px" marginwidth="0" marginheight="0"
                    frameborder="0" title="Dialog Title"></iframe>
        </div>
    </div>
    <div id="comment-modal" class="modal hide fade" style="display: none;">
        <div class="modal-header">
            <a href="#" class="close">×</a>
            <h3>
                Comments</h3>
        </div>
        <div class="modal-body">
            <iframe id="comments_frame" width="530px" height="350px" marginwidth="0" marginheight="0"
                    frameborder="0" title="Dialog Title"></iframe>
        </div>
    </div>

      
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#modalIFrame').attr('src', '/EmailToFriend.aspx?url=' + encodeURIComponent(window.location.href) + "&title=" + encodeURIComponent(document.title));
            $('#comments_frame').attr('src', '/Comments.aspx?popup=t&url=' + encodeURIComponent(window.location.href) + "&title=" + encodeURIComponent(document.title));
        });

        window.hideCommentsModal = function () {
            $('#comment-modal').modal('hide')
        }
        window.hideReferToFriendModal = function () {
            $('#email-to-friend-modal').modal('hide')
        }

//        $(window).load(function () {
//            var img = $('#NewsImage');


//            var maxWidth = Math.max(img.width() + 100, 600);

//            window.resizeTo(maxWidth, $(this).height() + 65);
//        });
    </script>

</asp:Content>